package arena;

import org.uqbar.arena.Application;
import org.uqbar.arena.windows.Window;

import domain.Asiento;
import domain.Usuario;
import domain.operacion.Compra;
import domain.operacion.Reserva;

public class AterrizarApplication extends Application{

	@Override
	protected Window<?> createMainWindow() {
		Usuario user = new Usuario();
		user.setNombre("Juan Topo");
		Integer numeroAsiento = 5;
		user.agregarCompra(new Compra(new Asiento("23/12/2012", numeroAsiento, "Lanchita","IB0630", "5537.50")));
		user.agregarCompra(new Compra(new Asiento("12/10/2012", numeroAsiento, "Oceanic","OC22222020", "1500")));
		user.agregarReserva(new Reserva(new Asiento("25/10/2012", numeroAsiento, "Lanchita","IB0630", "5537.50")));
		user.agregarReserva(new Reserva(new Asiento("20/11/2012", numeroAsiento, "Oceanic","OC22222020", "1500")));
		return new OperarWindow(this, user);
	}
	
	public static void main(String[] args) {
		new AterrizarApplication().start();
	}
	

}
